﻿<Page x:Class="Halfwit.Views.AboutPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
      Title="About Halfwit"
      x:Name="me"
      >
    <Page.Resources>
        <Style TargetType="Button" BasedOn="{StaticResource {x:Type ButtonBase}}">
            <Setter Property="Margin" Value="4,0,0,0" />
            <Setter Property="Width" Value="65" />
        </Style>
    </Page.Resources>

    <DockPanel>
        <DockPanel DockPanel.Dock="Bottom" Margin="8,16,8,8" LastChildFill="False">
            <Button DockPanel.Dock="Right" Content="OK" IsDefault="True" Command="NavigationCommands.BrowseBack" />
        </DockPanel>

        <TextBlock DockPanel.Dock="Top" Text="About Halfwit" FontSize="16" Margin="8,2" />

        <Grid HorizontalAlignment="Center">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            
            <Image Grid.Column="0" Margin="8" HorizontalAlignment="Right" VerticalAlignment="Top" Source="/halfwit.ico" Height="80" Width="80" />

            <StackPanel Grid.Column="1" Margin="8" MaxWidth="480">
                <TextBlock Margin="0,0,0,16" FontWeight="Bold" Text="{Binding Version,ElementName=me,StringFormat='Version: {0}'}" />
                <TextBlock Margin="0,0,0,16" Text="By Matt Hamilton, 2010" />
                <TextBlock Margin="0,0,0,16" TextWrapping="Wrap">Visit the <Hyperlink NavigateUri="http://madprops.org/halfwit">Halfwit home page</Hyperlink></TextBlock>
                <TextBlock Margin="0,0,0,16" TextWrapping="Wrap">Vote for feature requests, and leave your own, on <Hyperlink NavigateUri="http://halfwit.codeplex.com">Codeplex</Hyperlink></TextBlock>
            </StackPanel>
        </Grid>
    </DockPanel>
</Page>
